<h1>Replication Procedure <span id="spinner" style="display: none"><%= image_tag 'bigrotation2.gif'%></span></h1>
<form>
<%= submit_to_remote "sync_button", "Start Syncing", :id => 'sync_button', :url => { :controller => 'syncs', :action => 'perform_sync' }, :html => { :id => 'sync_button' } %>
</form>
<div id="dump_log" style="overflow: auto; height: 500px">
</div>
<%= periodically_call_remote :frequency => 2, :condition => "$('sync_button').disabled == true",
	:url => { :controller => 'syncs', :action => 'dump_sync_log' } %>
